package com.fulihui.weixinclient.request;

import com.alibaba.fastjson.JSONObject;
import com.fulihui.weixinclient.result.UserListWeixinResult;

/**
 * 获取微信关注用户列表请求参数
 * @author Created by Willard.Hu on 2016/8/17 0017.
 */
public class UserListWeixinRequest extends FuncWeixinRequest<UserListWeixinResult> {
    private static final long serialVersionUID = 293672862406151850L;
    /**
     * 第一个拉取的OPENID，不填默认从头开始拉取
     */
    private String            next_openid;

    public String getNext_openid() {
        return next_openid;
    }

    public void setNext_openid(String next_openid) {
        this.next_openid = next_openid;
    }

    @Override
    public String service() {
        return "https://api.weixin.qq.com/cgi-bin/user/get";
    }

    @Override
    public String urlEndStr() {
        return null;
    }

    @Override
    public UserListWeixinResult parseResult(String respStr) {
        return JSONObject.parseObject(respStr, UserListWeixinResult.class);
    }
}
